home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / pnmshear.1 < prev    next >
Text File  |  1995-07-25  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ppppnnnnmmmmsssshhhheeeeaaaarrrr((((1111))))     XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((11112222 JJJJaaaannnnuuuuaaaarrrryyyy 1111999999991111))))      ppppnnnnmmmmsssshhhheeeeaaaarrrr((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           pnmshear - shear a portable anymap by some angle
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ppppnnnnmmmmsssshhhheeeeaaaarrrr [----nnnnooooaaaannnnttttiiiiaaaalllliiiiaaaassss] _a_n_g_l_e [_p_n_m_f_i_l_e]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           Reads a portable anymap as input.  Shears it by the
  16.           specified angle and produces a portable anymap as output.
  17.           If the input file is in color, the output will be too,
  18.           otherwise it will be grayscale.  The angle is in degrees
  19.           (floating point), and measures this:
  20.               +-------+  +-------+
  21.               |       |  |\       \
  22.               |  OLD  |  | \  NEW  \
  23.               |       |  |an\       \
  24.               +-------+  |gle+-------+
  25.           If the angle is negative, it shears the other way:
  26.               +-------+  |-an+-------+
  27.               |       |  |gl/       /
  28.               |  OLD  |  |e/  NEW  /
  29.               |       |  |/       /
  30.               +-------+  +-------+
  31.           The angle should not get too close to 90 or -90, or the
  32.           resulting anymap will be unreasonably wide.
  33.  
  34.           The shearing is implemented by looping over the source
  35.           pixels and distributing fractions to each of the destination
  36.           pixels.  This has an "anti-aliasing" effect - it avoids
  37.           jagged edges and similar artifacts.  However, it also means
  38.           that the original colors or gray levels in the image are
  39.           modified.  If you need to keep precisely the same set of
  40.           colors, you can use the ----nnnnooooaaaannnnttttiiiiaaaalllliiiiaaaassss flag.  This does the
  41.           shearing by moving pixels without changing their values.  If
  42.           you want anti-aliasing and don't care about the precise
  43.           colors, but still need a limited *number* of colors, you can
  44.           run the result through _p_p_m_q_u_a_n_t.
  45.  
  46.           All flags can be abbreviated to their shortest unique
  47.           prefix.
  48.  
  49.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  50.           pnmrotate(1), pnmflip(1), pnm(5), ppmquant(1)
  51.  
  52.      AAAAUUUUTTTTHHHHOOOORRRR
  53.           Copyright (C) 1989, 1991 by Jef Poskanzer.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 9/7/93)
  64.  
  65.  
  66.  
  67.